<?

function smarty_function_link( $params, $smarty ) {

	require_once $smarty->_get_plugin_filepath( 'modifier', 'escape' );
	require_once $smarty->_get_plugin_filepath( 'function', 'url' );

	$text = $params['text'];
	$url = Smutty_Utils::getUrl( $params );

	echo '<a href="' . $url . '">' .
			smarty_modifier_escape($text) . '</a>';

}

?>